function init() {
    //console.log(getmemberInfo());
    var info = getmemberInfo();
    var data=getdata();
    $('#name').text(info.nickName);
    $('#logo').attr("src", info.logo);

    $('#ju').text('已消费'+data.buyMoney+'元 距成为会员还差'+data.shortMoney+'元');
 //   $('#tipContent').html(data.tips);
  //  orderCou
}

function getdata() {
    ///mobile/life/data
     var member;
    $.ajax({
        type: "post",
        url: ajaxUrl + "/mobile/life/data",
        async: false,
        data: {'memberId': memberId},
        success: function (data) {
            member = data.result;
        }
    });
    return member;
}

function getmemberInfo() {
    var member;
    $.ajax({
        type: "post",
        url: ajaxUrl + "/mobile/member/getMember",
        async: false,
        data: {'memberId': memberId},
        success: function (data) {
            member = data.result;
        }
    });
    return member;
}